package com.yly;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import org.springframework.web.context.support.XmlWebApplicationContext;

/**
 * Created by tj on 2016/9/29.
 */
public class App {

    @Autowired
    private UserDao mUserDao;

    public void doGetUserName() {
        String name = mUserDao.getUser(1);
        System.out.println(name);
    }

    public static void main(String[] args) {
//        ApplicationContext context = new FileSystemXmlApplicationContext("/web/WEB-INF/applicationContext.xml");
        new App().doGetUserName();
    }

}
